package com.hiwhitley.himei.module.video;

import android.support.design.widget.TabLayout;
import android.support.v4.view.ViewPager;

import com.hiwhitley.himei.R;
import com.hiwhitley.himei.app.base.BaseFragment;

import butterknife.BindView;

/**
 * Created by hiwhitley on 2016/9/24.
 */

public class VideoFragment extends BaseFragment {

    @BindView(R.id.sliding_tabs)
    TabLayout mTabLayout;
    @BindView(R.id.vp_video_fragment)
    ViewPager mViewPager;

    private VideoPagerAdapter mVideoPagerAdapter;

    @Override
    protected int getContentViewId() {
        return R.layout.fragment_video;
    }

    @Override
    protected void init() {
        mVideoPagerAdapter = new VideoPagerAdapter(getFragmentManager(), mActivity);

    }

    @Override
    protected void setListener() {
        mViewPager.setAdapter(mVideoPagerAdapter);
        mTabLayout.setupWithViewPager(mViewPager);
    }

}
